package com.itheima.day10;
/*
	定义ECar类属性有：
		brand品牌String、price价格double、km已行驶距离int
		提供空参、带参构造
		提供getXxx()、setXxx()方法

 */

public class ECar03 {

    private String brand;
    private double price;
    private  int km;

    public ECar03() {

    }

    public ECar03(String brand, double price, int km) {
        this.brand = brand;
        this.price = price;
        this.km = km;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getKm() {
        return km;
    }

    public void setKm(int km) {
        this.km = km;
    }
}
